﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace Nextworks.Core.Plugin
{
    public class PluginDataObject
    {
        public string ObjectKey { get; set; }
        public Type ObjectType { get; set; }
        public Plugin Plugin { get; set; }
    }

    public class PluginDataObjectCollection: KeyedCollection<string, PluginDataObject>
    {

        protected override string GetKeyForItem(PluginDataObject item)
        {
            return item.ObjectKey;
        }
    }
}
